<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('承办单位未签收T')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="post-form">
                <div class="select-list">
                    <ul>
                        <li>
                            工单编号：<input type="text" name="myTwfNO"/>
                        </li>
                        <li>
                            派发单位：<input type="text" name="sdeptName"/>
                        </li>

                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm " id="toolbar" role="group">
<!--            <a class="btn btn-success multiple disabled" onclick="$.operate.handleTab()"-->
<!--               shiro:hasPermission="mTelRcd:process:view">-->
<!--                <i class="fa fa-plus"></i> 处理-->
<!--            </a>-->
<!--            <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"-->
<!--               shiro:hasPermission="mTelRcd:remove:view">-->
<!--                <i class="fa fa-remove"></i> 删除-->
<!--            </a>            -->
            <a class="btn btn-success multiple disabled" onclick="detail('')">
                <i class="fa"></i> 查看
            </a>
        </div>

        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:src="@{/common/js/common.js}"></script>
<script th:src="@{/js/telReport.js}"></script>

<script th:inline="javascript">
    var prefix = ctx + "system/report/tel";

    $(function () {
        var options = {
            url: prefix+"/listSonSignNotJson",
            sortName: "pkId",
            sortOrder: "desc",
            uniqueId: "PkId",
            updateUrl: prefix+"/cmnFile/showWorkForm/{id}",
            modalName: "承办单位未签收",
            fixedColumns: true,
            fixedNumber: 1,
            fixedRightNumber: 1,
            columns: [{
                checkbox: true
            },
                {field: 'PkId', title: 'pkid',visible:false},
                {field: 'WfId', title: 'wfId',visible:false},
                {field: 'myTwfNO', title: '工单编号', align: 'center', sortable: true},
                {field: 'myTwfTopic', title: '工单主题', align: 'center', sortable: true},
                {field: 'SeqName', title: '交办次序', align: 'center'},
                {field: 'SortName', title: '性质', align: 'center', sortable: true},
                {field: 'DealName', title: '办理方式', align: 'center', sortable: true},
                {field: 'bkLimit', title: '办理期限', align: 'center', sortable: true},
                {field: 'SDeptName', title: '来自', align: 'center', sortable: true},
                {
                    field: 'sattachPath',
                    title: '直派',
                    align: 'center',
                    sortable: true,
                    // formatter: function (value, row, index) {
                    //     return fmtWFormZP(value, row, index);
                    // }
                },
                {field: 'sdDate', title: '派发日期', align: 'center', sortable: true},
                {field: 'SendRemark', title: '备注', align: 'center', halign: 'center'},
                {
                    field: 'Mark',
                    title: '是否紧急',
                    align: 'center',
                    formatter: function (value, row, index) {
                        var mark = row.Mark;
                        var rtn = "否"
                        if (mark == "1") {
                            rtn = "<span style='color:red;'>是</span>"
                        }
                        return rtn;
                    }
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function (value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="detail('+row.WfId+')"><i class="fa"></i>查看</a>');
                        // actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.operate.handleTab(\'' + row.pkId + '\',\'电话工单签收处理\')"><i class="fa fa-edit"></i>查看</a> ');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>